//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System;

namespace Mindscape.Web.UI.WebControls.Binding
{
  public class DataBindingValidationEventArgs : EventArgs
  {
    private WebDataBindingItem _dataBindingItem = null;
    private bool _isValid = true;

    /// <summary>
    /// Gets or sets the data binding item.
    /// </summary>
    /// <value>The data binding item.</value>
    public WebDataBindingItem DataBindingItem
    {
      get { return _dataBindingItem; }
      set { _dataBindingItem = value; }
    }

    /// <summary>
    /// Gets or sets a value indicating whether this instance is valid.
    /// </summary>
    /// <value><c>true</c> if this instance is valid; otherwise, <c>false</c>.</value>
    public bool IsValid
    {
      get { return _isValid; }
      set { _isValid = value; }
    }
  }
}